package com.wzh.design.strategy.demo1;

import cn.hutool.core.date.DateUtil;
import cn.hutool.cron.task.Task;

import java.util.HashMap;

/**
 * @description:
 * @author: WZH
 * @time: 2021/5/26 8:43
 */
public class Demo {
    public static void main(String[] args) {
        GreenHeadDuck greenHeadDuck=new GreenHeadDuck();
        RedHeadDuck redHeadDuck=new RedHeadDuck();


        HashMap<Object, Object> map = new HashMap<>();

        greenHeadDuck.display();
        greenHeadDuck.Quack();
        greenHeadDuck.swim();



        redHeadDuck.display();
        redHeadDuck.Quack();
        redHeadDuck.swim();


        boolean sameDay = DateUtil.isSameDay(DateUtil.parseDateTime("2021-07-04 00:00:00"), DateUtil.parseDateTime("2021-07-04 21:05:00"));
        System.out.println(sameDay);


    }
}
